<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@include file="../../mytags.jsp" %>
<t:base type="jquery"></t:base>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <title>巡检申请详情</title>
    <style>
        .eq1 {
            margin-top: 0px;
        }
    </style>
</head>
<body>
<script type="text/javascript">

</script>
<div class="eq1">
    <div class="geren" style="font-weight: bold;margin:10px 0px 10px 15px;">
        <img src="${webRoot }/images/about.jpg">服务申请详情
    </div>
    <div class="inrr inrr1 inrr2 inrr-plus">
        <h4><span>服务申请号</span>${app.inAppId}&nbsp;</h4>
        <h4><span>期望巡检年度</span>
            <fmt:formatDate value="${app.expectDate}" type="date" pattern="yyyy"/>
            &nbsp;</h4>
        <h4><span>期望巡检季度</span>
            <t:dictSelect field="expectSection" type="span" typeGroupCode="<%=StaticValue.DIC_APPOINT_EXPECT_SECTION%>"
                          defaultVal="${app.expectSection}"></t:dictSelect>
            &nbsp;</h4>
        <h4><span>联系人</span>${app.contactName}&nbsp;</h4>
        <h4><span>联系电话</span>${app.phone}&nbsp;</h4>
        <h4><span>邮箱</span>${app.mail}&nbsp;</h4>
    </div>
</div>
<c:if test="${not empty app.esList}">
    <div class="geren" style="font-weight: bold;margin-bottom: 10px;">
        <img src="${webRoot }/images/about.jpg">申请巡检设备
    </div>
    <div class="mui-card" style="width:93%;border:none;">
        <div class="mui-card-content" >
            <ul class="mui-table-view">
                <c:forEach var="equip" items="${app.esList}">
                    <li class="mui-table-view-cell" style="padding-left:40px;">设备序列号：${equip.es.sn}
                        &nbsp;&nbsp;型号：${equip.es.type.typeDesc}</li>
                </c:forEach>
            </ul>
        </div>

    </div>

</c:if>

<div class="mui-clearfix"></div>
<c:if test="${empty evaluate && plan.state =='j_inspection_complete'}">
    <div class="mui-content-padded">
        <a class="mui-btn mui-btn-block mui-btn-primary"
           href="inspectionWx.do?goInspectionEvaluate&inspectionId=${plan.id}">评 价</a>
    </div>
</c:if>
<c:if test="${plan.companyHadAreaEg == '0' && plan.confirmOrderTime==0 && plan.state =='d_third_party_assigned'}">
    <div class="mui-content-padded">
        <a class="mui-btn mui-btn-block mui-btn-primary" onclick="confirmOrderTime('${plan.id}')">确 认</a>
    </div>
</c:if>
<c:if test="${plan.companyHadAreaEg == '1' && plan.confirmOrderTime==0 && plan.state =='i_aeg_assigned'}">
    <div class="mui-content-padded">
        <a class="mui-btn mui-btn-block mui-btn-primary" onclick="confirmOrderTime('${plan.id}')">确 认</a>
    </div>
</c:if>
</body>
<script type="text/javascript" charset="utf-8">
    mui.init();
</script>
</html>